import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

// 导出列表数据
export const exportDataByTable = (id: string | number) =>
  http.get<{ url: string; name: string }>(`${PORT1}/km/import/export`, { id }, { loading: false });
// 导出错误数据
export const exportDataByError = (id: string | number) =>
  http.get<{ url: string; name: string }>(`${PORT1}/km/import/export-error`, { id }, { loading: false });
